package com.moviesearch.elastic7.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class FilmresourcesExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public FilmresourcesExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andFilmtitleIsNull() {
            addCriterion("filmTitle is null");
            return (Criteria) this;
        }

        public Criteria andFilmtitleIsNotNull() {
            addCriterion("filmTitle is not null");
            return (Criteria) this;
        }

        public Criteria andFilmtitleEqualTo(String value) {
            addCriterion("filmTitle =", value, "filmtitle");
            return (Criteria) this;
        }

        public Criteria andFilmtitleNotEqualTo(String value) {
            addCriterion("filmTitle <>", value, "filmtitle");
            return (Criteria) this;
        }

        public Criteria andFilmtitleGreaterThan(String value) {
            addCriterion("filmTitle >", value, "filmtitle");
            return (Criteria) this;
        }

        public Criteria andFilmtitleGreaterThanOrEqualTo(String value) {
            addCriterion("filmTitle >=", value, "filmtitle");
            return (Criteria) this;
        }

        public Criteria andFilmtitleLessThan(String value) {
            addCriterion("filmTitle <", value, "filmtitle");
            return (Criteria) this;
        }

        public Criteria andFilmtitleLessThanOrEqualTo(String value) {
            addCriterion("filmTitle <=", value, "filmtitle");
            return (Criteria) this;
        }

        public Criteria andFilmtitleLike(String value) {
            addCriterion("filmTitle like", value, "filmtitle");
            return (Criteria) this;
        }

        public Criteria andFilmtitleNotLike(String value) {
            addCriterion("filmTitle not like", value, "filmtitle");
            return (Criteria) this;
        }

        public Criteria andFilmtitleIn(List<String> values) {
            addCriterion("filmTitle in", values, "filmtitle");
            return (Criteria) this;
        }

        public Criteria andFilmtitleNotIn(List<String> values) {
            addCriterion("filmTitle not in", values, "filmtitle");
            return (Criteria) this;
        }

        public Criteria andFilmtitleBetween(String value1, String value2) {
            addCriterion("filmTitle between", value1, value2, "filmtitle");
            return (Criteria) this;
        }

        public Criteria andFilmtitleNotBetween(String value1, String value2) {
            addCriterion("filmTitle not between", value1, value2, "filmtitle");
            return (Criteria) this;
        }

        public Criteria andFilmactorsIsNull() {
            addCriterion("filmActors is null");
            return (Criteria) this;
        }

        public Criteria andFilmactorsIsNotNull() {
            addCriterion("filmActors is not null");
            return (Criteria) this;
        }

        public Criteria andFilmactorsEqualTo(String value) {
            addCriterion("filmActors =", value, "filmactors");
            return (Criteria) this;
        }

        public Criteria andFilmactorsNotEqualTo(String value) {
            addCriterion("filmActors <>", value, "filmactors");
            return (Criteria) this;
        }

        public Criteria andFilmactorsGreaterThan(String value) {
            addCriterion("filmActors >", value, "filmactors");
            return (Criteria) this;
        }

        public Criteria andFilmactorsGreaterThanOrEqualTo(String value) {
            addCriterion("filmActors >=", value, "filmactors");
            return (Criteria) this;
        }

        public Criteria andFilmactorsLessThan(String value) {
            addCriterion("filmActors <", value, "filmactors");
            return (Criteria) this;
        }

        public Criteria andFilmactorsLessThanOrEqualTo(String value) {
            addCriterion("filmActors <=", value, "filmactors");
            return (Criteria) this;
        }

        public Criteria andFilmactorsLike(String value) {
            addCriterion("filmActors like", value, "filmactors");
            return (Criteria) this;
        }

        public Criteria andFilmactorsNotLike(String value) {
            addCriterion("filmActors not like", value, "filmactors");
            return (Criteria) this;
        }

        public Criteria andFilmactorsIn(List<String> values) {
            addCriterion("filmActors in", values, "filmactors");
            return (Criteria) this;
        }

        public Criteria andFilmactorsNotIn(List<String> values) {
            addCriterion("filmActors not in", values, "filmactors");
            return (Criteria) this;
        }

        public Criteria andFilmactorsBetween(String value1, String value2) {
            addCriterion("filmActors between", value1, value2, "filmactors");
            return (Criteria) this;
        }

        public Criteria andFilmactorsNotBetween(String value1, String value2) {
            addCriterion("filmActors not between", value1, value2, "filmactors");
            return (Criteria) this;
        }

        public Criteria andFilmscoringIsNull() {
            addCriterion("filmScoring is null");
            return (Criteria) this;
        }

        public Criteria andFilmscoringIsNotNull() {
            addCriterion("filmScoring is not null");
            return (Criteria) this;
        }

        public Criteria andFilmscoringEqualTo(String value) {
            addCriterion("filmScoring =", value, "filmscoring");
            return (Criteria) this;
        }

        public Criteria andFilmscoringNotEqualTo(String value) {
            addCriterion("filmScoring <>", value, "filmscoring");
            return (Criteria) this;
        }

        public Criteria andFilmscoringGreaterThan(String value) {
            addCriterion("filmScoring >", value, "filmscoring");
            return (Criteria) this;
        }

        public Criteria andFilmscoringGreaterThanOrEqualTo(String value) {
            addCriterion("filmScoring >=", value, "filmscoring");
            return (Criteria) this;
        }

        public Criteria andFilmscoringLessThan(String value) {
            addCriterion("filmScoring <", value, "filmscoring");
            return (Criteria) this;
        }

        public Criteria andFilmscoringLessThanOrEqualTo(String value) {
            addCriterion("filmScoring <=", value, "filmscoring");
            return (Criteria) this;
        }

        public Criteria andFilmscoringLike(String value) {
            addCriterion("filmScoring like", value, "filmscoring");
            return (Criteria) this;
        }

        public Criteria andFilmscoringNotLike(String value) {
            addCriterion("filmScoring not like", value, "filmscoring");
            return (Criteria) this;
        }

        public Criteria andFilmscoringIn(List<String> values) {
            addCriterion("filmScoring in", values, "filmscoring");
            return (Criteria) this;
        }

        public Criteria andFilmscoringNotIn(List<String> values) {
            addCriterion("filmScoring not in", values, "filmscoring");
            return (Criteria) this;
        }

        public Criteria andFilmscoringBetween(String value1, String value2) {
            addCriterion("filmScoring between", value1, value2, "filmscoring");
            return (Criteria) this;
        }

        public Criteria andFilmscoringNotBetween(String value1, String value2) {
            addCriterion("filmScoring not between", value1, value2, "filmscoring");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsIsNull() {
            addCriterion("numberOfEvaluators is null");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsIsNotNull() {
            addCriterion("numberOfEvaluators is not null");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsEqualTo(String value) {
            addCriterion("numberOfEvaluators =", value, "numberofevaluators");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsNotEqualTo(String value) {
            addCriterion("numberOfEvaluators <>", value, "numberofevaluators");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsGreaterThan(String value) {
            addCriterion("numberOfEvaluators >", value, "numberofevaluators");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsGreaterThanOrEqualTo(String value) {
            addCriterion("numberOfEvaluators >=", value, "numberofevaluators");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsLessThan(String value) {
            addCriterion("numberOfEvaluators <", value, "numberofevaluators");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsLessThanOrEqualTo(String value) {
            addCriterion("numberOfEvaluators <=", value, "numberofevaluators");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsLike(String value) {
            addCriterion("numberOfEvaluators like", value, "numberofevaluators");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsNotLike(String value) {
            addCriterion("numberOfEvaluators not like", value, "numberofevaluators");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsIn(List<String> values) {
            addCriterion("numberOfEvaluators in", values, "numberofevaluators");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsNotIn(List<String> values) {
            addCriterion("numberOfEvaluators not in", values, "numberofevaluators");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsBetween(String value1, String value2) {
            addCriterion("numberOfEvaluators between", value1, value2, "numberofevaluators");
            return (Criteria) this;
        }

        public Criteria andNumberofevaluatorsNotBetween(String value1, String value2) {
            addCriterion("numberOfEvaluators not between", value1, value2, "numberofevaluators");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionIsNull() {
            addCriterion("filmDescription is null");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionIsNotNull() {
            addCriterion("filmDescription is not null");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionEqualTo(String value) {
            addCriterion("filmDescription =", value, "filmdescription");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionNotEqualTo(String value) {
            addCriterion("filmDescription <>", value, "filmdescription");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionGreaterThan(String value) {
            addCriterion("filmDescription >", value, "filmdescription");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("filmDescription >=", value, "filmdescription");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionLessThan(String value) {
            addCriterion("filmDescription <", value, "filmdescription");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionLessThanOrEqualTo(String value) {
            addCriterion("filmDescription <=", value, "filmdescription");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionLike(String value) {
            addCriterion("filmDescription like", value, "filmdescription");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionNotLike(String value) {
            addCriterion("filmDescription not like", value, "filmdescription");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionIn(List<String> values) {
            addCriterion("filmDescription in", values, "filmdescription");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionNotIn(List<String> values) {
            addCriterion("filmDescription not in", values, "filmdescription");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionBetween(String value1, String value2) {
            addCriterion("filmDescription between", value1, value2, "filmdescription");
            return (Criteria) this;
        }

        public Criteria andFilmdescriptionNotBetween(String value1, String value2) {
            addCriterion("filmDescription not between", value1, value2, "filmdescription");
            return (Criteria) this;
        }

        public Criteria andFilmrankingIsNull() {
            addCriterion("filmRanking is null");
            return (Criteria) this;
        }

        public Criteria andFilmrankingIsNotNull() {
            addCriterion("filmRanking is not null");
            return (Criteria) this;
        }

        public Criteria andFilmrankingEqualTo(String value) {
            addCriterion("filmRanking =", value, "filmranking");
            return (Criteria) this;
        }

        public Criteria andFilmrankingNotEqualTo(String value) {
            addCriterion("filmRanking <>", value, "filmranking");
            return (Criteria) this;
        }

        public Criteria andFilmrankingGreaterThan(String value) {
            addCriterion("filmRanking >", value, "filmranking");
            return (Criteria) this;
        }

        public Criteria andFilmrankingGreaterThanOrEqualTo(String value) {
            addCriterion("filmRanking >=", value, "filmranking");
            return (Criteria) this;
        }

        public Criteria andFilmrankingLessThan(String value) {
            addCriterion("filmRanking <", value, "filmranking");
            return (Criteria) this;
        }

        public Criteria andFilmrankingLessThanOrEqualTo(String value) {
            addCriterion("filmRanking <=", value, "filmranking");
            return (Criteria) this;
        }

        public Criteria andFilmrankingLike(String value) {
            addCriterion("filmRanking like", value, "filmranking");
            return (Criteria) this;
        }

        public Criteria andFilmrankingNotLike(String value) {
            addCriterion("filmRanking not like", value, "filmranking");
            return (Criteria) this;
        }

        public Criteria andFilmrankingIn(List<String> values) {
            addCriterion("filmRanking in", values, "filmranking");
            return (Criteria) this;
        }

        public Criteria andFilmrankingNotIn(List<String> values) {
            addCriterion("filmRanking not in", values, "filmranking");
            return (Criteria) this;
        }

        public Criteria andFilmrankingBetween(String value1, String value2) {
            addCriterion("filmRanking between", value1, value2, "filmranking");
            return (Criteria) this;
        }

        public Criteria andFilmrankingNotBetween(String value1, String value2) {
            addCriterion("filmRanking not between", value1, value2, "filmranking");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("updateTime is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("updateTime is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("updateTime =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("updateTime <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("updateTime >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("updateTime >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("updateTime <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("updateTime <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("updateTime in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("updateTime not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("updateTime between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("updateTime not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}